package com.wanmao.test;


import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.wanmao.test.util.DialogUtils;
import com.wanmao.test.util.ToastUtils;


public abstract class BaseActivity extends Activity implements OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    public void onClick(View v) {

    }


    public void back(View v) {
        finish();
    }


    public void toastMsg(String msg) {
        ToastUtils.show(this, msg);
    }

    public void alert(String msg) {
        DialogUtils.alertInfo(this, msg);

    }


}
